﻿<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/Master_Page/Master_IPORT.Master" CodeBehind="BulkVessel_Month.aspx.vb" Inherits="I_PORT.BulkVessel_Month" 
    title="IRPC INTELLIGENT PORT SERVICE" %>
    
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="~/Control/Confirm.ascx" TagName="Confirm1" TagPrefix="Confirm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script type="text/javascript" language="javascript">
                    var _source;
    // keep track of the popup div
    var _popup;

    function showConfirm(customerid) {
        this._source = customerid;
        this._popup = $find('ModalPopupExtender3'); 
        this._popup.show();  
    }
       function okClick(){
        //  find the confirm ModalPopup and hide it
       this._popup.hide();

        __doPostBack(this._source.name,'');
        
    }
    
    function cancelClick(){
        //  find the confirm ModalPopup and hide it
        this._popup.hide();
    }
        function closeModal() {
           document.getElementById('ctl00_contentplaceholder1_framePopup').src = '../FormPopup/Booking_Bas_Vessel_Popup.aspx';
            var mpu = $find('ctl00_ContentPlaceHolder1_ModalPopupExtender1');
            mpu.hide();
            document.getElementById('ctl00_contentplaceholder1_btnLoad').click();
        }
        function showPopup() {
             document.getElementById('ctl00_contentplaceholder1_framePopup').contentWindow.location.reload(true);
        }
        function closeModalReject(type) {
           // document.getElementById('ctl00_contentplaceholder1_framePopup').src = 'about:blank';
        if (type == 'V')
            {
            document.getElementById('ctl00_contentplaceholder1_CancelPopup').src = '../FormPopup/Cancel_popup.aspx?Type=REJECT';
            var mpu = $find('ctl00_ContentPlaceHolder1_ModalPopupExtender6');
            mpu.hide();
            document.getElementById('ctl00_contentplaceholder1_btnRejectOK').click();
            }
            else
            {
            document.getElementById('ctl00_contentplaceholder1_CancelPopup').src = '../FormPopup/Cancel_popup.aspx?Type=REJECT';
            var mpu = $find('ctl00_ContentPlaceHolder1_ModalPopupExtender6');
            mpu.hide();
            }
           
        }
function checkNumber(e)
{
var keycode;

if (window.event) keycode = window.event.keyCode; // ใช้ IE อ่ะ

else if (e) keycode = e.which; // ใช้ Firefox เน่าะ

 if (((keycode > 47) && (keycode < 58))||(keycode == 190)||(keycode == 46))
 {
 return true;
 }
return false;
}
    </script>
<asp:UpdatePanel ID="UpdatePanelMaster" runat="server">
   <ContentTemplate>
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
       <tr>
          <td>
             <asp:Panel ID="PanelVesselBulk" runat="server" >
                <table width="100%" border="0" cellpadding="2" cellspacing="0" >
                   <tr>
                      <td align="center">
                        <asp:GridView ID="gridItem" runat="server" SkinID="gridblue" DataKeyNames="BV_no,Wharf,Product_name,Fender,Company,WharfShow,Complete,Send_By,Check_By,Approve_By,Reject_By,Reject_Description"
                     AutoGenerateColumns="False">
                        <PagerTemplate>
                                            <table>
                                                <tr>
                                                    <td>
                                                        <asp:ImageButton ID="ImgFirst" runat="server" Height="22px" ImageUrl="../Image/arrow-first.gif"
                                                            OnCommand="Paginate" CommandArgument="First" CommandName="Page" />
                                                    </td>
                                                    <td>
                                                        <asp:ImageButton ID="ImgBack" runat="server" Height="22px" ImageUrl="../Image/arrow-back.gif"
                                                            OnCommand="Paginate" CommandArgument="Prev" CommandName="Page" />
                                                    </td>
                                                    <td valign="top">
                                                        Page
                                                        <asp:DropDownList ID="ddlPage" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlPage_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                        of
                                                        <asp:Label ID="lbPageCount" runat="server" Text="Label"></asp:Label>
                                                    </td>
                                                    <td>
                                                        <asp:ImageButton ID="ImgNext" runat="server" Height="22px" ImageUrl="../Image/arrow-next.gif"
                                                            OnCommand="Paginate" CommandArgument="Next" CommandName="Page" />
                                                    </td>
                                                    <td>
                                                        <asp:ImageButton ID="ImgEnd" runat="server" Height="22px" ImageUrl="../Image/arrow-end.gif"
                                                            OnCommand="Paginate" CommandArgument="Last" CommandName="Page" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </PagerTemplate>
                      <Columns>
                         <asp:TemplateField HeaderText="BOOKING NO." ItemStyle-Wrap="false">
                             <ItemTemplate>
                                 <asp:LinkButton ID="LinkBooking" runat="server" Text="<%# Bind('BV_Show') %>" CommandArgument="<%# Container.DataItemIndex %>" CommandName="Edit"></asp:LinkButton>
                             </ItemTemplate>
                         </asp:TemplateField>
                         <asp:BoundField HeaderText="Company" DataField="Company" />
                         <asp:BoundField HeaderText="Product" DataField="Product_name" />
                         <asp:BoundField HeaderText="Wharf" DataField="WharfShow" />
                         <asp:BoundField HeaderText="Fender" DataField="Fender" />
                         <asp:BoundField HeaderText="Date" /> 
                         <asp:BoundField HeaderText="รถบรรทุก(เที่ยว)" />
                         <asp:BoundField HeaderText="ปริมาณสินค้า(MT)" />
                         <asp:TemplateField HeaderText="แก้ไข" ItemStyle-Width="50px">
                             <ItemTemplate>
                                 <asp:ImageButton ID="imgedit" CommandName="cmdedit" CommandArgument="<%# Container.DataItemIndex %>"  runat="server" ImageUrl="~/Image/edit-24.gif" />
                             </ItemTemplate>
                         </asp:TemplateField>
                        <asp:TemplateField HeaderText="ลบ" ItemStyle-Width="50px">
                            <ItemTemplate>
                                 <asp:ImageButton ID="imgdelete" CommandName="cmddelete" CommandArgument="<%# Container.DataItemIndex %>" OnClientClick="showConfirm(this); return false;"  runat="server" ImageUrl="~/Image/cancel-24.gif" />
                             </ItemTemplate>
                         </asp:TemplateField>
                     </Columns>
                 </asp:GridView>
                      </td>
                   </tr>
                   <tr>
                     <td>
                       <table width="100%" border="0" cellpadding="0" cellspacing="0" >
                         <tr>
                            <td style="width:120px;">&nbsp;</td>
                            <td align="left">
                               <asp:Button ID="BtnNewItem" runat="server" Text="New"  OnClientClick="showPopup();" CssClass="ButtonStyle" />
                            </td>
                         </tr>
                       </table>
                     </td>
                   </tr>
                </table>
             </asp:Panel>
             <asp:Panel ID="PanelAddVessel" runat="server" Visible="false" >
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                       <td align="center">
                          <table width="95%" border="0" cellpadding="0" cellspacing="0" >
                               <tr>
                                   <td align="left">
                                       <asp:Label ID="lbCompanyHead" runat="server" SkinID="lbtxt" Text="บริษัท : "></asp:Label>
                                   </td>
                                   <td align="left">
                                       <asp:Label ID="lbProductHead" runat="server" SkinID="lbtxt" Text="สินค้า : "></asp:Label>
                                   </td>
                                   <td align="left">
                                       <asp:Label ID="lbwharfHead" runat="server" SkinID="lbtxt" Text="ท่าเรือ : "></asp:Label>
                                   </td>
                               </tr>
                          </table>
                       </td>
                    </tr>
                    <tr>
                       <td>&nbsp;</td>
                    </tr>
                   <tr>
                      <td align="center">
                         <fieldset style="width:95%;" >
                        
                <table width="95%" border="0" cellpadding="2" cellspacing="0" >
                   <tr>
                      <td colspan="2" align="center" >
                             
                         <asp:GridView ID="gridVessel" runat="server" ShowFooter="true" SkinID="gridblueNoPage" AutoGenerateColumns="false" DataKeyNames="Bas_name,StartDate,StartTime,EndDate,EndTime" >
                            <Columns>
                               <asp:TemplateField HeaderText="ลำดับที่" HeaderStyle-Wrap="false">
                                     <ItemTemplate>
                                             <%#Container.DataItemIndex+1 %>
                                     </ItemTemplate>
                                     <FooterTemplate>
                                         <asp:Label ID="lbFooter" runat="server" Text="Total" SkinID="lbHeadReport" ></asp:Label>
                                     </FooterTemplate>
                                     <HeaderStyle Wrap="False" />
                               </asp:TemplateField>
                               <asp:BoundField HeaderText="ชื่อเรือ" DataField="Bas_name" />
                               <asp:BoundField HeaderText="เริ่มต้นการขนถ่าย" DataField="StartShow" />
                               <asp:BoundField HeaderText="สิ้นสุดการขนถ่าย" DataField="EndShow" />
                               <asp:BoundField HeaderText="เวลาที่ใช้ในการขนถ่าย" />
                               <asp:BoundField HeaderText="รถยนต์บรรทุกไม่เกิน 6 ล้อ" DataField="Truck6" />
                               <asp:BoundField HeaderText="รถยนต์บรรทุก 8 หรือ 10 ล้อ" DataField="Truck810" />
                               <asp:BoundField HeaderText="รถพ่วง" DataField="Trailer" />
                               <asp:BoundField HeaderText="รถพ่วงมากกว่า 2 axle" DataField="Trailer2" />
                               <asp:BoundField HeaderText="ปริมาณสินค้า(MT)" DataField="Product_Amount" />
                               <asp:TemplateField HeaderText="แก้ไข" ItemStyle-Width="50px">
                             <ItemTemplate>
                                 <asp:ImageButton ID="imgedit" CommandName="cmdedit" CommandArgument="<%# Container.DataItemIndex %>"  runat="server" ImageUrl="~/Image/edit-24.gif" />
                             </ItemTemplate>
                                   <ItemStyle Width="50px" />
                         </asp:TemplateField>
                        <asp:TemplateField HeaderText="ลบ" ItemStyle-Width="50px">
                            <ItemTemplate>
                                 <asp:ImageButton ID="imgdelete" CommandName="cmddelete" CommandArgument="<%# Container.DataItemIndex %>" OnClientClick="showConfirm(this); return false;"  runat="server" ImageUrl="~/Image/cancel-24.gif" />
                             </ItemTemplate>
                            <ItemStyle Width="50px" />
                         </asp:TemplateField>
                            </Columns>
                         </asp:GridView>
                         
                      </td>
                   </tr>
                   </table>
                   <table width="95%" border="0" cellpadding="2" cellspacing="0" >
                   <tr>
                      <td style="width:200px" align="right"><asp:Label ID="lb1" runat="server" SkinID="lbtxt" Text="Barge Vessel :" ></asp:Label>&nbsp;</td>
                      <td align="left" ><asp:TextBox ID="txtVessel" runat="server" Width="250px" ></asp:TextBox>
                          <asp:AutoCompleteExtender  runat="server" ID="AutoCompleteExtender3" BehaviorID="AutoCompleteEx3" CompletionInterval="50"
                     TargetControlID="txtVessel" ServicePath="../WebService/AutoComplete_IPORT.asmx" MinimumPrefixLength="1" 
                    ServiceMethod="GetBas" CompletionListCssClass="autocomplete_completionListElement" ContextKey="B"
                CompletionListItemCssClass="autocomplete_listItem" 
                CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" >
                <Animations>
                    <OnShow>
                        <Sequence>
                            <%-- Make the completion list transparent and then show it --%>
                            <OpacityAction Opacity="0" />
                            <HideAction Visible="true" />
                            
                            <%--Cache the original size of the completion list the first time
                                the animation is played and then set it to zero --%>
                            <ScriptAction Script="
                                // Cache the size and setup the initial size
                                var behavior = $find('AutoCompleteEx3');
                                if (!behavior._height) {
                                    var target = behavior.get_completionList();
                                    behavior._height = target.offsetHeight - 2;
                                    target.style.height = '0px';
                                }" />
                            
                            <%-- Expand from 0px to the appropriate size while fading in --%>
                            <Parallel Duration=".3">
                                <FadeIn />
                                <Length PropertyKey="height" StartValue="0" EndValueScript="$find('AutoCompleteEx3')._height" />
                            </Parallel>
                        </Sequence>
                    </OnShow>
                    <OnHide>
                        <%-- Collapse down to 0px and fade out --%>
                        <Parallel Duration=".3">
                            <FadeOut />
                            <Length PropertyKey="height" StartValueScript="$find('AutoCompleteEx3')._height" EndValue="0" />
                        </Parallel>
                    </OnHide>
                </Animations>
                 </asp:AutoCompleteExtender>
                      </td>
                   </tr>
                   <tr>
                      <td style="width:200px" align="right"><asp:Label ID="Label1" runat="server" SkinID="lbtxt" Text="วัน/เวลา เริ่มการขนถ่าย :" ></asp:Label>&nbsp;</td>
                      <td align="left" >
                      <asp:TextBox ID="txtStartDate" runat="server" Width="80px" onkeypress="return false;" ></asp:TextBox>&nbsp;<asp:ImageButton ID="imgStartDate" runat="server" ImageUrl="~/Image/calendar.png" />&nbsp;<asp:TextBox ID="txtStartTime" runat="server" Width="40px"></asp:TextBox>
                                                     <asp:CalendarExtender ID="CalendarStart" runat="server" 
                                                          TargetControlID="txtStartDate" Format="dd MMM yyyy" PopupButtonID="imgStartDate" 
                                                           Enabled="True"></asp:CalendarExtender>
                                                      <asp:MaskedEditExtender ID="MaskedEditExtender9" runat="server" TargetControlID="txtStartTime"
                                                             Mask="99:99" MaskType="Time" AcceptNegative="Left"  Enabled="True" ></asp:MaskedEditExtender>
                      </td>
                   </tr>
                   <tr>
                      <td style="width:200px" align="right"><asp:Label ID="Label2" runat="server" SkinID="lbtxt" Text="วัน/เวลา เสร็จการขนถ่าย :" ></asp:Label>&nbsp;</td>
                      <td align="left" >
                      <asp:TextBox ID="txtEndDate" runat="server" Width="80px" onkeypress="return false;" ></asp:TextBox>&nbsp;<asp:ImageButton ID="imgEndDate" runat="server" ImageUrl="~/Image/calendar.png" />&nbsp;<asp:TextBox ID="txtEndTime" runat="server" Width="40px"></asp:TextBox>
                                                     <asp:CalendarExtender ID="CalendarExtender1" runat="server" 
                                                          TargetControlID="txtEndDate" Format="dd MMM yyyy" PopupButtonID="imgEndDate" 
                                                           Enabled="True"></asp:CalendarExtender>
                                                      <asp:MaskedEditExtender ID="MaskedEditExtender1" runat="server" TargetControlID="txtEndTime"
                                                             Mask="99:99" MaskType="Time" AcceptNegative="Left"  Enabled="True" ></asp:MaskedEditExtender>
                      </td>
                   </tr>
                    <tr>
                    <td  style="width:200px" align="right">
                        <asp:Label ID="Label4" runat="server" Text="รถยนต์บรรทุกไม่เกิน 6 ล้อ :" SkinID="lbtxt"></asp:Label>&nbsp;
                    </td>
                    <td align="left" valign="top">
                        <asp:TextBox ID="txtTruck6" runat="server" Width="60px" MaxLength="10" Text="0" onkeypress="return checkNumber(this);"></asp:TextBox>&nbsp;<asp:Label ID="Label9" runat="server" Text="เที่ยว" SkinID="lbtxt"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td  style="width:200px" align="right">
                        <asp:Label ID="Label10" runat="server" Text="รถยนต์บรรทุก 8 หรือ 10 ล้อ :" SkinID="lbtxt"></asp:Label>&nbsp;
                    </td>
                    <td align="left" valign="top">
                        <asp:TextBox ID="txtTruck810" runat="server" Width="60px" MaxLength="10" Text="0" onkeypress="return checkNumber(this);"></asp:TextBox>&nbsp;<asp:Label ID="Label11" runat="server" Text="เที่ยว" SkinID="lbtxt"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td  style="width:200px" align="right">
                        <asp:Label ID="Label12" runat="server" Text="รถพ่วง :" SkinID="lbtxt"></asp:Label>&nbsp;
                    </td>
                    <td align="left" valign="top">
                        <asp:TextBox ID="txtTrailer" runat="server" Width="60px" MaxLength="10" Text="0" onkeypress="return checkNumber(this);"></asp:TextBox>&nbsp;<asp:Label ID="Label13" runat="server" Text="เที่ยว" SkinID="lbtxt"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td  style="width:200px" align="right">
                        <asp:Label ID="Label14" runat="server" Text="รถพ่วงมากกว่า 2 axle :" SkinID="lbtxt"></asp:Label>&nbsp;
                    </td>
                    <td align="left" valign="top">
                        <asp:TextBox ID="txtTrailer2" runat="server" Width="60px" MaxLength="10" Text="0" onkeypress="return checkNumber(this);"></asp:TextBox>&nbsp;<asp:Label ID="Label15" runat="server" Text="เที่ยว" SkinID="lbtxt"></asp:Label>
                    </td>
                </tr>
                   <tr>
                      <td style="width:200px" align="right"><asp:Label ID="Label3" runat="server" SkinID="lbtxt" Text="ปริมาณสินค้า :" ></asp:Label>&nbsp;</td>
                      <td align="left" ><asp:TextBox ID="txtProduct" runat="server" Width="250px" Text="0" onkeypress="return checkNumber(this);" ></asp:TextBox>&nbsp;<asp:Label ID="lbProduct" runat="server" SkinID="lbtxt" Text="MT" ></asp:Label></td>
                   </tr>
                   <tr>
                      <td style="width:200px" align="right">&nbsp;</td>
                      <td align="left" >
                               <asp:Button ID="btnAddBasVessel" runat="server" CssClass="ButtonStyle" Text="Add Barge Vessel" Width="120px" />
                      </td>
                   </tr>
                </table>
                
                                         </fieldset>
                      </td>
                   </tr>
                   <tr>
                      <td>
                         <table width="95%" border="0" cellpadding="2" cellspacing="0" >
                            <tr id="rowSend" runat="server" visible="false">
                               <td style="width:250px;" align="right"><asp:Label ID="Label5" runat="server" Text="Input Data By :" SkinID="lbtxt"></asp:Label>&nbsp;</td>
                               <td align="left">
                                 <asp:Label ID="lbSend" runat="server" Text="" SkinID="lbtxt"></asp:Label>&nbsp;
                               </td>
                              </tr>
                              <tr id="rowCheck" runat="server" visible="false">
                               <td style="width:250px;" align="right"><asp:Label ID="Label6" runat="server" Text="Check Data By :" SkinID="lbtxt"></asp:Label>&nbsp;</td>
                               <td align="left">
                               <asp:Label ID="lbCheck" runat="server" Text="" SkinID="lbtxt"></asp:Label>&nbsp;
                               </td>
                              </tr>
                              <tr id="rowApprove" runat="server" visible="false">
                               <td style="width:250px;" align="right"><asp:Label ID="Label7" runat="server" Text="Approve Data By :" SkinID="lbtxt"></asp:Label>&nbsp;</td>
                               <td align="left">
                               <asp:Label ID="lbApprove" runat="server" Text="" SkinID="lbtxt"></asp:Label>&nbsp;
                               </td>
                              </tr>
                              <tr id="rowReject" runat="server" visible="false">
                               <td style="width:250px;" align="right"><asp:Label ID="Label8" runat="server" Text="Reject Data By :" SkinID="lbtxt"></asp:Label>&nbsp;</td>
                               <td align="left">
                               <asp:Label ID="lbReject" runat="server" Text="" SkinID="lbtxt"></asp:Label>&nbsp;
                               </td>
                              </tr>
                              <tr id="rowRejectDescription" runat="server" visible="false">
                               <td style="width:250px;" align="right"><asp:Label ID="Label16" runat="server" Text="Description :" SkinID="lbtxt"></asp:Label>&nbsp;</td>
                               <td align="left">
                               <asp:Label ID="lbRejectDescription" runat="server" Text="" SkinID="lbtxt"></asp:Label>&nbsp;
                               </td>
                              </tr>
                             <tr>
                               <td style="width:250px;">&nbsp;</td>
                               <td align="left">
                                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                  <tr>
                                     <td align="left" >
                                         <asp:Button ID="btnSave" runat="server" CssClass="ButtonStyle" Text="Save" />
                                         <asp:Button ID="btnPrint" runat="server" CssClass="ButtonStyle" Text="Print" />
                                        <asp:Button ID="btnBack" runat="server" CssClass="ButtonStyle" Text="Back" />
                                        <asp:Button ID="btnReject" runat="server" CssClass="ButtonStyle" Text="Reject" OnClientClick="return confirm('หลังจากทำการ Reject ระบบจะทำการย้อนสถานะให้ผู้ที่เกี่ยวข้องก่อนหน้านี้ทำการตรวจสอบข้อมูลอีกครั้ง!!');" />
                                     </td>
                                     <td align="right">
                                        <asp:Button ID="btnSend" runat="server" CssClass="ButtonStyle" Text="Complete Data" Width="120px" OnClientClick="return confirm('ยืนยันการการบันทึกข้อมูลทั้งหมด หลังจากยืนยันแล้วจะไม่สามารถทำการแก้ไขข้อมูลได้อีก!!');" />&nbsp;&nbsp;
                                        <asp:Button ID="btnCheck" runat="server" CssClass="ButtonStyle" Text="Check" Width="120px" OnClientClick="return confirm('ยืนยันการตรวจสอบ  หลังจากยืนยันแล้วจะไม่สามารถทำการแก้ไขข้อมูลได้อีก!!');" />&nbsp;&nbsp;
                                        <asp:Button ID="btnComplete" runat="server" CssClass="ButtonStyle" Text="Approve" Width="120px" OnClientClick="return confirm('ยืนยันการอนุมัติ หลังจากทำการยืนยันข้อมูลจะถูกนำไปคิดค่าใช้จ่าย !!');" />&nbsp;&nbsp;
                                     </td>
                                  </tr>
                                </table>
                               </td>
                             </tr>
                         </table>
                      </td>
                   </tr>
                </table>
             </asp:Panel>
          </td>
       </tr>
     </table>
          <asp:Button ID="btnAdd" runat="server" Text="" style="display:none" />
      <asp:Button ID="btnLoad" runat="server" Text="ปิด" style="display:none;" />
     <asp:Button ID="BtnTrigger" runat="server" style="display:none;" />
     <asp:Button ID="btnRejectOK" runat="server" style="display:none;" />
     <asp:Button ID="btnTempCancel" runat="server" Text="Button" Style="display: none;" />
    <asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" BackgroundCssClass="Background"
     TargetControlID="btnAdd" PopupControlID="PopupAdd" >
    </asp:ModalPopupExtender>
            <asp:ModalPopupExtender ID="ModalPopupExtender3" BehaviorID="ModalPopupExtender3" runat="server" 
                                    OkControlID="ctl00_contentplaceholder1_ConfirmDelete_btnOk" 
                                    OnOkScript="okClick();" 
                                    CancelControlID="ctl00_contentplaceholder1_ConfirmDelete_btnNo"     
                                    OnCancelScript="cancelClick();" 
                                     BackgroundCssClass="Background" DropShadow="false" 
                                      PopupControlID="PanelConfirm" TargetControlID="BtnTrigger" >
        </asp:ModalPopupExtender>
        <asp:ModalPopupExtender ID="ModalPopupExtender6" runat="server" BackgroundCssClass="Background"
                TargetControlID="btnTempCancel" PopupControlID="PanelCancel">
            </asp:ModalPopupExtender>
    <asp:Panel ID="PopupAdd" runat="server" Style="display: none;">
        <table>
            <tr>
                <td>
                    <iframe runat="server" id="framePopup" class="Style-Iframe" marginheight="0px" marginwidth="0px" src="../FormPopup/Booking_Bas_Vessel_Popup.aspx" >
                    </iframe>
                </td>
            </tr>
        </table>
    </asp:Panel>
        <asp:Panel ID="PanelConfirm" runat="server" style="display:none;">
       <Confirm:Confirm1 ID="ConfirmDelete" runat="server" ></Confirm:Confirm1>
    </asp:Panel>
    <asp:Panel ID="PanelCancel" runat="server" Style="display: none;">
                <table>
                    <tr>
                        <td>
                            <iframe runat="server" id="CancelPopup" marginheight="0px" class="Style-Iframe" marginwidth="0px"
                                src="../FormPopup/Cancel_popup.aspx?Type=REJECT"></iframe>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
   </ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
